{% extends 'base.html.twig' %}

{% block body %}

{{category.title}}---{{category.id}}

</ul>
<hr>

<h2>博客</h2>
{% for post in posts %}
<h2>{{post.title}}</h2>
<p>{{post.body}}</p>

{% endfor %}

<hr>
<a href="{{path('admin_blog_create',{id:category.id})}}">添加博客</a>
{% endblock %}
